#!/usr/bin/env python
# _*_ coding: utf-8 _*_
# @Time : 2022/4/20 16:28
# @Author : caoshi
# @Version：V1.0
# @File : test03.py
# @desc : for 循环

# for letter in 'Python':
#     print("当前字母: %s" % letter)

fruits = ['banana', 'apple', 'orange']
# for fruit in fruits:
#     print('当前水果: %s' % fruit)

# 使用索引
for index in range(len(fruits)):
    print("当前水果: %s 索引是 %s" % (fruits[index], index))



